﻿<Application x:Class="WPFEntityFrameworkTest.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        
       
        
        <Style x:Key="LabelHeader" TargetType="Label">
            <Setter Property="FontWeight" Value="Bold"></Setter>
        </Style>
        
        <Style x:Key="ButtonMenu" TargetType="Button">
            <Setter Property="Margin" Value="2,2,2,2"></Setter>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
            <Setter Property="Height" Value="25px"></Setter>
            <Setter Property="Width" Value="250px"></Setter>
        </Style>

        <Style x:Key="TextBoxEditMode" TargetType="TextBox">
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
            <Setter Property="Height" Value="25px"></Setter>
            <Setter Property="Width" Value="250px"></Setter>
            <Setter Property="Margin" Value="0,0,2,0"></Setter>
        </Style>

        <Style x:Key="LabelMode" TargetType="Label">
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
            <Setter Property="Height" Value="25px"></Setter>
            <Setter Property="Width" Value="250px"></Setter>
            <Setter Property="Margin" Value="0,0,2,0"></Setter>
        </Style>

        <!-- Style für eine Multiline Textbox -->
        <Style x:Key="TextBoxEditModeMulti" TargetType="TextBox">
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
            <Setter Property="Height" Value="50px"></Setter>
            <Setter Property="Width" Value="250px"></Setter>
            <Setter Property="AcceptsReturn" Value="True"></Setter>
            <Setter Property="VerticalScrollBarVisibility" Value="Visible"></Setter>
            <Setter Property="TextWrapping" Value="Wrap"></Setter>
            <Setter Property="Margin" Value="0,0,2,0"></Setter>
        </Style>
        
        <Style x:Key="TreeViewItemMenu" TargetType="TreeViewItem">
            <Setter Property="Margin" Value="0,2,0,2"></Setter>
        </Style>
        
        <Style x:Key="TreeViewMenu" TargetType="TreeView">
            <Setter Property="BorderBrush" Value="Transparent"></Setter>
        </Style>

        <Style x:Key="ListViewMenu" TargetType="ListView">
            <Setter Property="BorderBrush" Value="Transparent"></Setter>
            <Setter Property="SelectionMode" Value="Single"></Setter>
            <!-- Achtung "IsSynchronizedWithCurrentItem" wird benötigt für die Verbindung mit der "ListCollectionView" -->
            <Setter Property="IsSynchronizedWithCurrentItem" Value="True"></Setter>
        </Style>
        
    </Application.Resources>
</Application>
